.class public Lcom/htc/android/footprints/commonui/ExportDialog;
.super Lcom/htc/android/footprints/commonui/CommonDialog;
.source "ExportDialog.java"

# interfaces
.implements Lcom/htc/android/footprints/kml/KMLUtil$OnProgressListener;


# instance fields
.field private handler:Landroid/os/Handler;

.field private mf:Ljava/text/MessageFormat;

.field private msgText:Landroid/widget/TextView;


# direct methods
.method public constructor <init>(Landroid/content/Context;)V
    .locals 1
    .parameter "context"

    .prologue
    .line 23
    invoke-direct {p0, p1}, Lcom/htc/android/footprints/commonui/CommonDialog;-><init>(Landroid/content/Context;)V

    .line 20
    new-instance v0, Landroid/os/Handler;

    invoke-direct {v0}, Landroid/os/Handler;-><init>()V

    iput-object v0, p0, Lcom/htc/android/footprints/commonui/ExportDialog;->handler:Landroid/os/Handler;

    .line 24
    return-void
.end method

.method static synthetic access$000(Lcom/htc/android/footprints/commonui/ExportDialog;I)V
    .locals 0
    .parameter "x0"
    .parameter "x1"

    .prologue
    .line 16
    invoke-direct {p0, p1}, Lcom/htc/android/footprints/commonui/ExportDialog;->setProgress(I)V

    return-void
.end method

.method private setProgress(I)V
    .locals 3
    .parameter "progress"

    .prologue
    .line 43
    const/4 v1, 0x1

    new-array v0, v1, [Ljava/lang/Object;

    const/4 v1, 0x0

    new-instance v2, Ljava/lang/Integer;

    invoke-direct {v2, p1}, Ljava/lang/Integer;-><init>(I)V

    aput-object v2, v0, v1

    .line 44
    .local v0, arg:[Ljava/lang/Object;
    iget-object v1, p0, Lcom/htc/android/footprints/commonui/ExportDialog;->mf:Ljava/text/MessageFormat;

    invoke-virtual {v1, v0}, Ljava/text/MessageFormat;->format(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {p0, v1}, Lcom/htc/android/footprints/commonui/ExportDialog;->setMessage(Ljava/lang/CharSequence;)V

    .line 45
    return-void
.end method


# virtual methods
.method protected onCreate(Landroid/os/Bundle;)V
    .locals 3
    .parameter "savedInstanceState"

    .prologue
    .line 27
    invoke-super {p0, p1}, Lcom/htc/android/footprints/commonui/CommonDialog;->onCreate(Landroid/os/Bundle;)V

    .line 28
    const v0, 0x7f03000c

    invoke-virtual {p0, v0}, Lcom/htc/android/footprints/commonui/ExportDialog;->setContentView(I)V

    .line 29
    new-instance v0, Ljava/text/MessageFormat;

    invoke-virtual {p0}, Lcom/htc/android/footprints/commonui/ExportDialog;->getContext()Landroid/content/Context;

    move-result-object v1

    const v2, 0x7f0a006d

    invoke-virtual {v1, v2}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-direct {v0, v1}, Ljava/text/MessageFormat;-><init>(Ljava/lang/String;)V

    iput-object v0, p0, Lcom/htc/android/footprints/commonui/ExportDialog;->mf:Ljava/text/MessageFormat;

    .line 30
    const v0, 0x7f0c001a

    invoke-virtual {p0, v0}, Lcom/htc/android/footprints/commonui/ExportDialog;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/htc/android/footprints/commonui/ExportDialog;->msgText:Landroid/widget/TextView;

    .line 32
    return-void
.end method

.method public onEnd()V
    .locals 0

    .prologue
    .line 40
    return-void
.end method

.method public onProgress(I)V
    .locals 2
    .parameter "step"

    .prologue
    .line 48
    iget-object v0, p0, Lcom/htc/android/footprints/commonui/ExportDialog;->handler:Landroid/os/Handler;

    new-instance v1, Lcom/htc/android/footprints/commonui/ExportDialog$1;

    invoke-direct {v1, p0, p1}, Lcom/htc/android/footprints/commonui/ExportDialog$1;-><init>(Lcom/htc/android/footprints/commonui/ExportDialog;I)V

    invoke-virtual {v0, v1}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z

    .line 53
    return-void
.end method

.method public setMessage(Ljava/lang/CharSequence;)V
    .locals 1
    .parameter "message"

    .prologue
    .line 35
    iget-object v0, p0, Lcom/htc/android/footprints/commonui/ExportDialog;->msgText:Landroid/widget/TextView;

    invoke-virtual {v0, p1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 36
    return-void
.end method
